Convergence of min-sum message-passing for convex optimization