Systematic investigation of a magnetic ion source for an electromagnetic isotope separator