A multi-cohort study of the immune factors associated with M. tuberculosis infection outcomes