Domain interactions determine the conformational ensemble of the periplasmic chaperone SurA