Finite element analysis of drastic shape changes of cylinders due to thermal cycling