Singularities of the solution of a mixed problem for a general second order elliptic equation and boundary stabilizationof the wave equation