at least one PN junction, said layer comprising a cured resin selected from the group consisting of aromatic polyimides and aromatic polyamide-polyimides. mide having the repeating unit: TNH-Oo- C/ @l where x is a radical selected from the group consisting of CH, and O and n is an integer offrom lQto 199.