Dynamic VAR compesition for improved performance of synchronous machines and interconnected system-power system dynamics and control