A theoretical relationship between the rank-size rule and Clark's law of urban population distribution