Automatic registration of MR and SPECT images for treatment planning in prostate cancer