Corrosion of catalyst in high resolution: Layered transition metal dichalcogenides electrocatalyse water splitting and corrode during the process