A psychodynamic approach to the cognitive science of religion