Correlation between clinical outcome and spinopelvic parameters in ankylosing spondylitis