N, S-codoped cross-linked polymers for low switch voltage and high thermal stable nonvolatile memory