Preparation of cross-linked magnetic chitosan with quaternary ammonium and its application for Cr(VI) and P(V) removal.