Motion of charged particles in magnetic fields created by symmetric configurations of wires