Perturbed structural dynamics underlie inhibition and altered efflux of the multidrug resistance pump AcrB