Transient stability margin prediction using equal-area criterion | Synapse