Local automakers like XPeng sold more vehicles than foreign brands for the first time last quarter and, faced with flagging EV sales, VW is now buying a stake in XPeng to build EVs together. The first will be for the midsize market and based on the G9 SUV platform.