From molecular wires to optoelectronic devices door