Half a million new Scots jobs expected from automation