Electronics for simulating hysteretic behaviour of Ferroelectric devices