Theoretical analysis of the thermal sampling technique for TSD measurements on polymers