Design of a harmonic free three-phase UPS