Principles of mass spectrometry applied to biomolecules