Detecting robust patterns in the spread of epidemics: a case study of influenza in the United States and France.