Characterization of unsaturated hydrocarbons by mass spectrometry