Real-Time Digital Simulation of a Var Compensator With Fuzzy Supervisory Control