Elastic deformation of Ti films during alternating bending