Resonant energy transfer between highly vibrationally excited RbH(RbD) and H2(D2)