Mechanism of Hydrogen Evolution Reaction on 1T-MoS2 from First Principles