A multiscale modeling approach for the simulation of OxRRAM devices