Predictive neural controller to improve voltage quality in power systems