Tolerance and persistence promote the evolution of antibiotic resistance