Metapopulation structure of a semi-anadromous fish in a dynamic environment