Surface engineering to achieve organic ternary memory with a high device yield and improved performance | Synapse