The solar-cycle-dependent response of the thermosphere to geomagnetic storms