Optical spectroscopy coupled with mass spectrometry methods