Synthesis, structural charaterization, and electrochemical and optical properties of ferrocene-triazole-pyridine triads.