Data-driven detection and registration of spine surgery instrumentation in intraoperative images