On the relationship between open-loop and closed-loop state estimation for nonlinear stochastic systems