Interactions responsible for the pH dependence of the beta-hairpin conformational population formed by a designed linear peptide.