Monitoring the synthesis of biomolecules using mass spectrometry