Investigation of ferroelectric field-effect transistors using a replacement metal gate process