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