Two-dimensional electron gas characteristics of InP-based high electron mobility transistor terahertz detector*