Energy stored in capacitor: