Markov chain Monte Carlo modeling of high-redshift quasar host galaxies in Hubble Space Telescope imaging