The sustainability of public finances in the context of population ageing