The selective trapping of mobile group-V interstitials by impurities in electron-irradiated GaAs and GaP