Sorption of divalent and trivalent cations on a calcium-polygalacturonate network: a spectroscopic study.