Development of an equivalent circuit of a large power system for real- time security assessment