Phase-shift studies of the mercury-photosensitized luminescence of NH3 and ND3