Demographic dynamics and green economy: a sustainable growth model