How to minimize capital gains taxes on your stocks and crypto