Chaos analysis for a class of hyperbolic equations with nonlinear boundary conditions