Public investment, public debt, and population aging under the golden rule of public finance