Memory and threshold resistance switching in Ni/NiO core-shell nanowires.