Strain based 2D nonvolatile memory devices