Memory modes of ferroelectric field effect transistors