Transition metal dichalcogenide thin films for solar hydrogen production