Multilevel resistive switching in Cu and Ag doped CBRAM device