Thermally stimulated luminescence in molecularly doped polymers