Aerodynamic and thermal design of a space vehicle entering the Mars atmosphere