Terahertz detection in a slit-grating-gate field-effect-transistor structure