Study of impact demagnetization at Mars using Monte Carlo modeling and multiple altitude data