General Motors has cracked the chemistry of lower-cost, energy-dense electric vehicle batteries. Budget-conscious gasoline holdouts may soon have no excuse.