Tuning vacancy trapping by impurities in Si and Ge through high-throughput selection