Constraints on the depth of magnetized crust on Mars from impact craters