Manipulation of nanoparticles by arrays of electrodes: a theoretical analysis