Determinants and growth effects of foreign direct investment