Green's Function Diakoptics through Embedding - General Theory and Numerical Aspects