How American carmakers lost ground in China