Xiaomi built a Beijing factory capable of producing 200,000 cars annually before it had regulatory approval to start manufacturing in China