From molecular wires to optoelectronic devices by