Gate-controlled ionization and screening of cobalt adatoms on a graphene surface