US carmaker Tesla has become the latest international company to double down on investment in China's new-energy sector.