US has lost AI race with China, ex-Pentagon chief says