How does the fundamental attribution error relate to the cognitive dissonance theory in explaining a person's behavior?