Nvidia VD Jensen Huang har avgått efter en spionageskandal som involverar påstådd olaglig chipexport till Kina genom en singaporiansk mellanhand.