Microbial evolution in changing environments