Transient Stability Output Margin Estimation Based on Energy Function Method