Behaviors of the ionospheric and thermospheric disturbances during geomagnetic storms