Impact of the lower atmosphere on the ionosphere response to a geomagnetic superstorm