Impact of Martian Crustal Magnetic Field on the Ion Escape