An examination of residential mobility through the use of the log-linear model: I. theory