Interference between resonant and Auger mechanisms for charge-exchange processes near surfaces