Forecasting the dissemination of antibiotic resistance genes across bacterial genomes