Structure of the thermosphere