Scale Economies and Industry Agglomeration Externalities: A Dynamic Cost Function Approach