H2 and D2 photon impact predissociation