Cycling-induced degradation of metal-oxide resistive switching memory (RRAM)