Numerical Simulation of a Class of Nonlinear Wave Equations by Lattice Boltzmann Method