Evolution of bacteria specialization along an antibiotic dose gradient