Interaction of Ions in Liquid Crystals with Polyimide Films in Liquid Crystal Cells