Why are trade agreements more attractive in the presence of foreign direct investment