Photosensitivity of polyimides and polyquinazolones based on aromatic and heteroaromatic diamines