Trade, Foreign direct investment, and multinational enterprises in a general equilibrium model