Migration and Commuting: A Theoretical Framework