Tesla’s rough year took it to its second straight annual sales decline, and saw it lose its global EV sales leadership to China’s BYD.