Thermodynamics of Helix–Coil Transitions of Polyalanine in Open Carbon Nanotubes