Linear Response for Approximate Inference