Volkswagen, GM and other big brands are losing their grip on a once-lucrative market as Chinese consumers embrace homegrown electric vehicles.