Electrode dependence of resistance switching in polycrystalline NiO films