Energy stored in capacitors