The cognitive foundations and prosocial consequences of belief in karma and gods