An optimal design for patient-specific templates for pedicle spine screws placement.