Bayesian inversion with Markov chains—I. The magnetotelluric one-dimensional case