Dissecting mechanisms of bacterial pathogenesis using chemical probes