A plan to use swappable batteries in long-haul electric trucks highlights how freight is starting to move away from fossil fuels.