Trade-Related Technology Diffusion and the Dynamics of North-South and South-South Integration