Real-time detection of voltage sags based on wavelet transform | Synapse