Improved ternary memory performance of donor–acceptor structured molecules through cyano substitution