Stabilization of the wave equation with variable coefficients and boundary condition of memory type