An overmoded structure for the narrowband high-power terahertz pulse detection