How close was the Moon to the Earth when it formed?