Hybrid metal oxide nanostructures for solar water splitting and inorganic perovskite photovoltaics