Conformation of β-hairpins in protein structures