Foreign-invested firms in China rise