Nanofilament relaxation model for size dependent resistance drift in electrochemical memories