Diagnosis of mycobacterial infections