Energy storage and battery swapping