Comparison of two strategies to improve organic ternary memory performance: 3-Hexylthiophene linkage and fluorine substitution