In the automated future of work, women could gain—or lose—the most