Explain the role that gravitation played in the formation of the Moon after the large planetesimal hit Earth.