Application of raman spectroscopy in pharmaceuticals