Generalized Collocation Methods: Solutions to Nonlinear Problems