Formation of the moon brought water to Earth