Company loses crown of world’s best-selling electric-vehicle maker to China’s BYD