Nanostructured materials for alternative energy devices : supercapacitors, ultracapacitors, and lithium ion batteries