A Generalized Maximum Pseudo-Likelihood Estimator for Noisy Markov Fields