Molecular electronic structure by combination of fragments