Capacitor charging energy change