Markov Random Fields and Their Applications