Endogenous Growth of Population and Income Depending on Resource and Knowledge