Intelligent nanoparticles for targeted therapy