Optimal multi-community network modularity for information diffusion