Spillovers, localized learning and comparative advantage