Automatic Treatment of Multiply Connected Regions in Integral Formulations