Multiscale modeling of oxide RRAM devices for memory applications: from material properties to device performance