An Equilibrium Model Endogenizing the Emergence of a Dual Structure between the Urban and Rural Sectors