how to avoid paying capital gains tax on inherited property