Text this: An improved algorithm for phase-based voltage dip classification