Equilibrium and dynamic studies of the removal of As(III) and As(V) from contaminated aqueous systems using a functionalized biopolymer