1-8 cell LiIon/NiMH battery charger with capacity test function, USB-C PD3.0/QC3.0 capability for fast charging