Infrared and raman spectroscopy