A physics/circuit-based switching model for carbon-based resistive memory with sp2/sp3 cluster conversion.