Controller implementation and performance evaluation of a high power three-phase active power filter using controller hardware-in-the-loop simulation