It’s difficult to explain what we feel when we’re hurt, so doctors are developing new ways of assessing agony