China is the world’s largest market for new cars, but its slowing economy could leave automakers with too many factories and not enough buyers.