Text this: Real-time power quality detection and classification system