Rewritable and Non‐Volatile Memory Effects Based on Polyimides Containing Pendant Carbazole and Triphenylamine Groups