Stabilizing resistive switching performances of TiN/MgZnO/ZnO/Pt heterostructure memory devices by programming the proper compliance current