Copolymer analysis by mass spectrometry