Active control of spacecraft charging on ATS-5 and ATS-6