Inferring Networks of Diffusion and Influence