Polymeric nanoparticles as drugs carriers and controlled release implant devices