Phased attenuation correction and respiratory motion compensation of pet image by using a ct images and multiple respiratory-phase mr images