Innovation, external technological environment and the total factor productivity of enterprises