Gene sharing among plasmids and chromosomes reveals barriers for antibiotic resistance gene transfer