Ferroelectricity and ferroelectric resistive switching in sputtered Hf0.5Zr0.5O2 thin films