Factors governing fibrillogenesis of polypeptide chains revealed by lattice models.