Thermal history and evolution of the moon