Clues to the electrical switching mechanism of carbazole-containing polyimide thin films.