Electrochemical fabrication of a nonvolatile memory device based on polyaniline and gold particles