The Linearization of Belief Propagation on Pairwise Markov Networks