Genomic tracing of epidemics and disease outbreaks