UPS with Low THDi and High Power Factor