Statistical mechanics of protein-like heteropolymers.