Metal anion sorption on chitosan and derivative materials: a strategy for polymer modification and optimum use