Thermoacoustic Detector for Registration of Powerful Terahertz Pulses