Optimal multistage defined-benefit pension fund management