Thermogravimetry/mass spectrometry study of weakly basic starch-based ion exchanger