Power Flow Analysis and Stability of Power Systems