Surgical correction of scoliosis: Numerical analysis and optimization of the procedure