Recent advancements of two-dimensional transition metal dichalcogenides and their applications in electrocatalysis and energy storage