Density constraints on the formation of the continental Moho and crust