Electric field energy during capacitor discharge