Materials with cationic valence and conduction bands for photoelectrolysis of water