Quasi-invariant Gaussian measures for the nonlinear wave equation in three dimensions