An electrodeposited inhomogeneous metal-insulator-semiconductor junction for efficient photoelectrochemical water oxidation.