Pain reflects the informational value of nociceptive inputs