Local in space energy estimates for second-order hyperbolic equations