China's Xiaomi will spend $7 billion on homegrown chips amid the trade war