AMD to cut 4% of global workforce as it focuses on AI chip development