Stratospheric inertia-gravity waves generated in a numerical model of frontogenesis. II: Wave sources, generation mechanisms and momentum fluxes