Preparation and characterization of polymer based composite nanospheres for bone infection prevention