Carbazole-Pyridazine copolymers and their rhenium complexes: effect of the molecular structure on the electronic properties