The figure shows two identical parallel plate capacitors connected to a battery with the switch S closed. The switch is now opened and the free space between the plates of the capacitors is filled with a dielectric of dielectric constant 2. Find the ratio of the total electrostatic energy stored in both capacitors before and after the introduction of the dielectric.