The Mars thermosphere: 2. General circulation with coupled dynamics and composition