An analytic model for high-electron-mobility transistors