Novel Semi-Monolithic Tandem Device Architecture For Photovoltaic And Photoelectrochemical Devices