A wearable device to assess postural sway