Environment and sustainable growth in a two-sector model with variable population growth rate