Confinement in Nanopores Can Destabilize Alpha-Helix Folding Proteins and Stabilize the Beta Structures