Planning for steerable needles in neurosurgery