Thermodynamics of model prions and its implications for the problem of prion protein folding.