Absolute Energy Measurement of Single-Shot Terahertz Pulse with a Thermal Detector