Optimization of hydrogen production over TiO2 supported copper and nickel oxides: effect of photoelectrochemical features