Statistical learning in acute and chronic pain