2D transition metal-based phospho-chalcogenides and their applications in photocatalytic and electrocatalytic hydrogen evolution reactions