A Segmentation Approach for Stochastic Geological Modeling Using Hidden Markov Random Fields