Competition and Human Capital Accumulation: A Theory of Interregional Specialization and Trade