Tesla confirms it will end Model S and Model X production as BYD's rapid rise reshapes the global electric vehicle market.