Impact of geomagnetic activity on thermospheric composition and circulation, and their coupling to the middle and upper atmosphere