Characterization of metal ion interactions with chitosan by X-ray photoelectron spectroscopy