Sensory and short-term memory formations observed in a Ag2S gap-type atomic switch