Top gate engineering of field-effect transistors based on wafer-scale two-dimensional semiconductors