A Unified Approach to Intra-Industry Trade and Direct Foreign Investment