Quasi-periodic solutions for a nonlinear wave equation