The calculation of infrared intensities