Strong influence of electron capture on the characteristic X-ray emission following close heavy-ion-atom collisions