Public pensions, changing employment patterns, and the impact of pension reforms across birth cohorts