Apple hires Tesla's director of Autopilot software