Development of a novel smart active power factor correction module for power quality improvement in industry applications