International migration versus foreign investment in the presence of unemployment