Smoothness of solutions of second-order hyperbolic equations with discontinuous coefficients