Newton-Raphson consensus for distributed convex optimization