Foreign direct investment can trigger industrial upgrading