Infrared intensities in condensed phases