Effect of the geometry of confining media on the stability and folding rate of α-helix proteins