A facile method to synthesize carboxyl-functionalized magnetic polystyrene nanospheres