Hydrogen generation by water splitting using MoS2 and other transition metal dichalcogenides