Electrosprayed nanoparticles for drug delivery and pharmaceutical applications