Dipoles of the α-helix and β-sheet: their role in protein folding