Constraining the composition and thermal state of Mars from