Functionalized polymer foams as metal ion chelating agents with rapid complexation kinetics