A series of Duffy‐distance transformation for integrating 2D and 3D vertex singularities