Bridge balancing of energy storage elements