A novel approach to the synthesis of conjugated carbazole trimers as multifunctional chromophores for photorefractive materials