Electrical observations of filamentary conductions for the resistive memory switching in NiO films