Layered transition metal dichalcogenide/carbon nanocomposites for electrochemical energy storage and conversion applications