The pattern of direct foreign investment and economic growth