Solid-state batteries and capacitor batteries