In situ stepwise synthesis of functional multijunction molecular wires on gold electrodes and gold nanoparticles.