The Linearization of Belief Propagation on Pairwise Markov Random Fields