Synthesis of polymeric chelating resins and their application for the separation and preconcentration of toxic and trace metal ions