Thermal treatment leading to a different chemical state of a material, e.g. annealing for stress-relief, aging