Self-assembled nanostructures via electrospraying