Parameter estimation and inference for nonlinear dynamical systems