Correlation of photocurrent-voltage curves with flat-band potential for stable photoelectrodes for the photoelectrolysis of water