Interfacial Behavior of 2D Materials in Devices for Solar Fuels and Sensing Applications