battery vs capacitor differences