Blaming Humans and Machines: What Shapes People's Reactions to Algorithmic Harm