Vehicle-to-grid (V2G) and battery-to-grid (B2G) power