Vibrational intensities in infrared and Raman spectroscopy