Constrained submodular optimization and applications in information diffusion