Water photoelectrolysis using nickel titanate and niobate as photoanodes