Molecular recognition by mass spectrometry