how is ankylosing spondylitis diagnosed