Geochemical modeling of mantle differentiation and crustal growth