Technology diffusion and total factor productivity growth