Synthesis and application of magnetic chitosan nanoparticles in oilfield