Understanding the key factors that control the rate of β-hairpin folding