Why China’s electric-car industry is leaving Detroit, Japan, and Germany in the dust

China was no good at cars. Then EVs came along.