Fitting complex population models by combining particle filters with Markov chain Monte Carlo