On the convergence of finite element meshes in the presence of singularities