Terahertz detection in a double-grating-gate heterotransistor