Market sell-off lets investors turn straw into gold with these tax-smart moves