Thermally reversing window and stiffness transitions in chalcogenide glasses