Effect of salt on the formation of salt-bridges in β-hairpin peptides