Here’s how to reduce your capital gains tax bill after selling a home