Text this: Integrated optimal control and parameter estimation algorithms for discrete-time nonlinear stochastic dynamical systems