Self-consistent-field potential energies for the ground negative-ion and neutral states of HeH, ArH, and ArCl