Energy storage and switching for tokamak fusion reactors