A video-based system to estimate multi-segment postural stability and spinal curvature in an ambulatory environment