There are ways to minimize the tax bite after decades of putting money into retirement accounts like I.R.A.s and 401(k)’s.