Growth of granite greenstone terranes at convergent margins, and stabilization of Archean cratons