The Neural Basis of Optimism and Pessimism