Simplified control algorithm for power quality improvement in industrial applications