A smart optical fiber probe for Raman spectrometry and its application