Xiaomi’s founder Lei Jun has pledged to invest $10 billion to make EVs as the company aims to become one of the world’s top five automakers.