Effect of extrinsic traps on thermally stimulated luminescence in molecularly doped polymers