Effects of conformational changes in the N-terminal domain of RfaH on domain dissociation and fold switching