The sorption of ions by polyamides