Synthesis of novel multifunctional carbazole-based molecules and their thermal, electrochemical and optical properties