Pain modulates cerebral activity during cognitive performance