Recovering complete and draft population genomes from metagenome datasets