Calculation of high-frequency characteristics of field-effect transistors