Electronic Device Including a Transistor with a Non-uniform 2DEG