Metal oxide resistive memory switching mechanism based on conductive filament properties