Tesla is losing the innovation race to BYD as production and sales fall in China, the world’s biggest car market.