States have long relied on gas taxes to cover the cost of building and maintaining their highway infrastructure. That approach falls apart as more and more EVs take to the road. California is exploring another option: tracking the mileage motorists log and charging them according to how far they drive. That could help prevent a gas tax shortfall of more than $4 billion over the next decade.