Adsorption of platinum(IV) and palladium(II) from aqueous solution by magnetic cross-linking chitosan nanoparticles modified with ethylenediamine.