Using surface lattice resonances to engineer nonlinear optical processes in metal nanoparticle arrays