Biodegradable micro and nanoparticles for controlled drug release