High-performance p-type field-effect transistors using substitutional doping and thickness control of two-dimensional materials