Structural change and inter-sectoral mobility in a two-sector economy