Resistive switching effects of HfO2 high-k dielectric