Ion-implantation-enhanced chalcogenide-glass resistive-switching devices