Text this: Optimal CC-CV charging of lithium-ion battery for charge equalization controller