Kinetics and thermodynamics of folding in model proteins.