The impact of pain on subsequent effort and cognitive performance