Acoustic gravity waves in the ionosphere/thermosphere system