added capacitor energy formula