Polymers and nanocomposites: synthesis and metal ion pollutant uptake