Dipole length versus dipole velocity in the calculation of infrared intensities with Born–Oppenheimer wave functions