Simulation study of switching mechanism in carbon-based resistive memory with molecular dynamics and Extended Hückel Theory-based NEGF method