Factors affecting pelvic rotation in idiopathic scoliosis