Metal oxide RRAM switching mechanism based on conductive filament microscopic properties