Impact of toroidal and poloidal mode spectra on the control of non-axisymmetric fields in tokamaks