Strain-level microbial epidemiology and population genomics from shotgun metagenomics