Can I offset gains from sale of retirement assets whose proceeds were used towards purchase of a new home?