Childhood depression, anxiety tied to pain later