Nonlinear dynamic modeling for control of fusion devices