Nanoparticles for pharmaceutical applications