Analog-digital switching mixed mode low ripple-high efficiency Li-ion battery charger