Energy estimates of hyperbolic equations with dissipative lower terms