Developing countries overtook their wealthier counterparts in attracting foreign direct investment. (Reuters)