Computer-aided technique for determining spinal pedicle screw size and optimal insertion trajectory