Microscopic model of the operation of the Single-chalcogenide X-point Memory