Electron depletion due to bias of a T-shaped field-effect transistor