Semiconducting metal oxide nanostructures for water splitting and photovoltaics