Preparation and application of magnetic poly(styrene-glycidyl methacrylate) microspheres