Solvent-dependent assembly of terphenyl- and quaterphenyldithiol on gold and gallium arsenide.