On a non-linear finite element method for piezoelectric structures made of hysteretic ferroelectric ceramics