A Markov Chain Model for Subsurface Characterization: Theory and Applications