Trace analysis in mass spectrometry