The vertical thermal structure of the Martian atmosphere: Modification by motions