Infrared and Raman spectroscopy of polymers