A direct method of thermal time constant measurement for lithium tantalate based terahertz pryroelectric detectors