The role of dopamine in controlling pain and fear