Study of conformational switching in polyalanine at solid surfaces using molecular simulation