Nanostructured Metal Chalcogenides for Energy Storage and Electrocatalysis