Improved photostability of a CuO photoelectrode with Ni-doped seed layer