Design of Compact Photoelectrochemical Cells for Water Splitting