Chemicals in brain that helps avoid unwanted thoughts identified