Electrically induced cancellation and inversion of piezoelectricity in ferroelectric Hf0.5Zr0.5O2