Redox control of secondary structure in a designed peptide