Programmable self-assembly for scalable molecular electronic architectures