Cellulose and chitosan based magnetic nanocomposite microspheres and its application