Effect of metal halides on the electrical properties of polyimides