Thermal rearrangements in polypentenamer and polyoctenamer