Balancing the charge of multiple batteries or cells