Energy diagram analysis of photoelectrochemical water splitting process