Sorption mechanism of trace amounts of divalent metal ions on a chelating resin containing iminodiacetate groups