Origin of multiple memory states in organic ferroelectric field-effect transistors