Application of the thermal spike model to latent tracks induced in polymers