On the use of singular functions with finite element approximations