Polarization effects in the linear and nonlinear optical responses of gold nanoparticle arrays