How does the moon affect the earth's rotation?