How a former Microsoft executive brought Magic Leap back from the brink