A $1,000 investment in Nvidia stock five years ago is now worth more than $12,000. Here’s how the chipmaker built its AI ...