Trajectories for the evolution of bacterial CO2-concentrating mechanisms