Application of Newton/GMRES Method to Nonlinear Model-Predictive Control of Functional Electrical Stimulation