Atomic beam resonance apparatus with six-pole magnets for radioactive isotopes