Sorption of metal ions on a weak acid cation-exchange resin containing carboxylic groups