Nonvolatile multilevel memories for digital applications