Study Of Long-Term Stability Analysis Of Power Systems With Renewable Energy: Theory, Modeling And Numerical Methods