Text this: Hierarchical distributed balancing control for large scale reconfigurable AC battery packs