Nonlinear optimal predictive controller for static var compensator to improve power system damping and to maintain voltage