Modeling of Bipolar Semiconductor Photoelectrode Arrays for Electrolytic Processes