Vibration–rotation transition dipoles from first principles