Thermo-Chemical Evolution Of The Solid Mantle During Magma Ocean Crystallisation: Implications For Earth And Mars