Effect of metal ions on the switching performance of polyfluorene-based organic non-volatile memory devices