Regime Shifts in Nonlinear Stochastic Optimal Control Problems ∗