Organic nanostructured thin film devices and coatings for clean energy