Thermospheric and Ionospheric Effects by Gravity Waves from the Lower Atmosphere