Limits on the lunar temperature profile