EVs are the bright spot for BMW, whose global sales have been declining due to an onslaught of Chinese competitors.