Composition-dependent nanoelectronics of amido-phenazines: non-volatile RRAM and WORM memory devices