Material challenges for nonvolatile memory