A theoretical and empirical analysis of the length of residency discount in the rental housing market