Evolutionary history of Pacific salmon in dynamic environments