Portfolio in the red? How tax-loss harvesting can help stem the pain