Automatic treatment of multiply connected regions in Integral Formulations