Tuberculosis resistance acquisition in space and time: an analysis of globally diverse M. tuberculosis whole genome sequences