South Korea to invest $7 billion in AI in bid to retain edge in chips