Inferring Speciation Processes from Patterns of Natural Variation in Microbial Genomes