Microsoft and Meta slash thousands of jobs as AI reshapes the tech industry