Efficient Electrocatalytic and Photoelectrochemical Hydrogen Generation Using MoS2 and Related Compounds