Joint reconstruction of activity and attenuation in dynamic PET