The roles of history, chance, and natural selection in the evolution of antibiotic resistance