The role of inertia-gravity waves in the atmospheric energy spectrum: insights from global storm-resolving simulations