The Welfare Effect of a Free Trade Agreement in the Presence of Foreign Direct Investment and Rules of Origin