Thermal demagnetization of Martian upper crust by magma intrusion