Dynamics of within-host Mycobacterium tuberculosis diversity and heteroresistance during treatment