Novel energy-efficient hafnia-based ferroelectric processing-in-sensor with in-situ motion detection and four-quarter mutipilcation