Derivation process of capacitor average energy storage formula