Microbial strain-level population structure and genetic diversity from metagenomes