Accretion of continental crust: thermal and geochemical consequences