Ultracapacitors and supercapacitors