Real-Time Stability in Power Systems: Techniques for Early Detection of the Risk of Blackout