Quantification of upper thermosphere composition and its dynamic charge exchange coupling to the mid-latitude topside ionosphere