Optimal Funding and Asset Allocation Rules for Defined-Benefit Pension Plans