Ex-Tesla Autopilot chief leaves Apple electric car project