Role of contextual factors in health-related quality of life in ankylosing spondylitis