Effect of Localized States on the Electrical Characteristics of Metal–Semiconductor Field-Effect Transistors