The Dual Impact of Artificial Intelligence on Employment