Local adaptation, dispersal, and gene flow in a metapopulation of sockeye salmon