Capacitor batteries and lithium batteries