An iterative nonlinear filter using variational Bayesian optimization