Preparation of chitosan/magnetite composite beads and their application for removal of Pb(II) and Ni(II) from aqueous solution.