Variational Bayesian inference of hidden stochastic processes with unknown parameters