Nearing retirement? How to harvest gains from your investments.