Continental crust formation: Numerical modelling of chemical evolution and geological implications