Generalized pseudo-likelihood estimates for Markov random fields on lattice