Direct observation at nanoscale of resistance switching in NiO layers by conductive-atomic force microscopy