Damage of refractory metals and carbon-based materials under simulation of the thermal influence at plasma disruption