Quasi-Periodic Solutions of Nonlinear Wave Equations on the d-Dimensional Torus