How valuable is foreign investment for a developing economy?