Analysis and control of epidemics: A survey of spreading processes on complex networks