Seol mar théacs é seo: Stability analysis of power systems using network decomposition and local gain analysis