Aperiodic small signal stability method for detection and mitigation of cascading failures in smart grids | Synapse