Filament Conduction and Reset Mechanism in NiO-Based Resistive-Switching Memory (RRAM) Devices