BMW is succeeding with electric cars while rivals like Tesla struggle