Secondary structure and rigidity in model proteins