Template-based attenuation correction of PET in hybrid MR-PET scanners