On the thermal history of the Moon