Transient Stability Analysis Of Power Systems With Energy Storage