How the stability of a folded protein depends on interfacial water properties and residue-residue interactions