Enhanced hairpin stability through loop design: the case of the protein G B1 domain hairpin.