Logic-in-memory application of ferroelectric-based WS2-channel field-effect transistors for improved area and energy efficiency | Synapse