Automated Global Optimization Surface-Matching Registration Method for Image-to-Patient Spatial Registration in an Image-Guided Neurosurgery System