Mass-spectrometric study of carbohydrates