battery vs capacitor applications