Self-templating Scheme for the Synthesis of Nanostructured Transition-Metal Chalcogenide Electrodes for Capacitive Energy Storage