Inorganic materials for photoelectrolysis