Plasma potentials and performance of the advanced electron cyclotron resonance ion source