Removal of chromium ions by functional polymers in conjunction with ultrafiltration membranes