Multifunctional nanostructured materials for next generation photovoltaics