Synthesis, thermal stability, and linear and nonlinear optical properties of hyperbranched polyarylenes containing carbazole and/or fluorene moieties