Photochemistry of Nanostructured Materials for Energy Applications