Interference effects in the predissociation of H2 and HD