The ESX-1 secretion system senses bacterial contact and prepares mycobacteria for environmental adaptation