The Use of a Thermal Spike Model for Temperature Calculation in Two-Layer Structures along the Projective Track of a High-Energy Heavy Ion