Engineering Impurity Distributions in Photoelectrodes for Solar Water Oxidation