Deformity planning for sagittal plane corrective osteotomies of the spine in ankylosing spondylitis