Text this: Intelligent voltage dip mitigation in power networks with distributed generation