Political ideology and environmentalism impair logical reasoning