Detection of terahertz radiation in gated two-dimensional structures governed by dc current