Protein tolerance to random circular permutation correlates with thermostability and local energetics of residue-residue contacts.