How Upskilling Can Help Offset Job Losses from AI