The role of local heating in a nanoscale Ag2S memory