Unique interfacial thermodynamics of few-layer 2D MoS2 for (photo)electrochemical catalysis