The combination of selection and dispersal helps explain genetic structure in intertidal mussels