Characterizing singularities of a surface in Lie sphere geometry