Electrochemistry of nanostructured carbon materials in aqueous electrolytes and room temperature ionic liquids