Automatic detection of postural sway characteristics in diabetics, post-stroke and ankylosing spondylitis based on cluster analysis.