Energy storage in electric fields