A hierarchical statistical modeling approach for the unsupervised 3D reconstruction of the scoliotic spine