Adhesion of polyimides to metals and metal oxides