Electrochemistry of Carbon Nanostructures: from Pristine Materials to Functional Devices