Restrictive pulmonary function is more prevalent in patients with ankylosing spondylitis than in matched population controls and is associated with impaired spinal mobility: a comparative study