Two-terminal nonvolatile memories based on single-walled carbon nanotubes.