Topics in Markov chain Monte Carlo methods, with applications in statistics