An accurate and ergonomic method of registration for image-guided neurosurgery