Endogenous age structure in descriptive macroeconomic growth models: a general framework and some steady state analysis