Chemical modification of Chitosan for metal ion removal