A novel artificial neural network for power quality improvement in AC microgrid