Simulation of generation and propagation of acoustic gravity waves in the atmosphere during a rocket flight