Design and construction of molecular assemblies with large second-order optical nonlinearities. Quantum chemical aspects