Synthesis and second harmonic generation studies of nlo‐functionalized polyimides