Origin of resistance state relaxation and nonvolatile features in NiO films: Interfacial vs filamentary resistive switching