California’s Tax Treatment of Investment Gains: What You Should Know