Text this: Implementation of a non-conventional method to characterize voltage sags and swells