Scattering-free energy storage in open cavities bounded by metasurfaces