Thermal after-treatment of preforms