Relationship of bone mineral density with disease activity and functional ability in patients with ankylosing spondylitis: a cross-sectional study