Multiscale Quantum Simulation of Resistance Switching in Amorphous Carbonстатья