Evolution of resistive switching with switching cycles in Pt/BiFeO3/NiO/Pt memory cell