Quasi-periodic solutions for completely resonant nonlinear wave equations in 1D and 2D