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