Nanostructured organic thin films: Electronic energetics and devices