Lithium-ion UPS