Stabilization of hyperbolic equations with mixed boundary conditions