Nonlinear optimal control of coupled time-delayed models of economic growth