The role of self-regulatory capacity in the adaptation to pain