A general framework for high precision computation of singular integrals in Galerkin SIE formulations