Quantitative measurements of chronic pain