In Massachusetts, an Artist Explores an Old Dye Factory’s Toxic Influence