A composite transformation for numerical integration of singular integrals in the BEM