Power quality improvement in power systems using a static VAR compensator