Xiaomi’s entry into the electric car market comes as a price war has been intensifying.