A pyrolysis-mass spectrometry investigation of pectin methylation