Surface Functionalization of Single-Layered Ti3C2Tx MXene and Its Application in Multilevel Resistive Memory.