Accretion and differentiation of carbon in the early Earth.