Preparation and adsorption properties of resins containing amine, sulfonic acid, and carboxylic acid moieties