Fluorescent, electroactive, thermally stable triphenylamine‐ and naphthalene‐based polyimides for optoelectronic applications