Simulations of the general circulation of the Martian atmosphere: 1. Polar processes