Surface diffusion-limited lifetime of silver and copper nanofilaments in resistive switching devices | Synapse