The effects of crustal magnetic fields and the pressure balance in the high latitude ionosphere/atmosphere at Mars