Application of GaN for photoelectrolysis of water