Boundary element analysis for composite materials and a library of Green's functions