Analysis and Control of Epidemics: A Survey of Spreading Processes on Complex Networks