Thermally stable and organosoluble cardo binaphthylene based poly(amide imide)s and poly(ester imide)s