Rotational—vibrational dipole transitions in HD