Productivity Differentiation and International Specialization of Firms and Districts