Reducing potassium contamination for AMS detection of Ar-39 with an electron-cyclotron-resonance ion source