Detroit automakers like General Motors made a fortune selling cars to Chinese consumers. But Chinese firms have caught up.