Performance of diffusion adaptation for collaborative optimization