Economic development and sustainability in a two-sector model with variable population growth rate