Damage threshold in pre-heated materials exposed to intense X-rays