Nvidia’s CEO turned a struggling upstart into the world’s most valuable company. An exclusive look at how it happened.