Simulation and security analysis methods for transients due to loss of generation contingencies