The effects of genetic background on the evolution of antibiotic resistance and its fitness costs