China gains $7.1 billion in foreign direct investment