Bacterial genomic epidemiology, from local outbreak characterization to species-history reconstruction