how to avoid capital gains tax