Boundary stabilization of the wave equation with variable coefficients