Preparation and characterization of polymeric materials for the removal of heavy metal ions from water