Optimization of vortex pinning by nanoparticles using simulations of the time-dependent Ginzburg-Landau model