Artificial intelligence will replace most jobs and create few. The future is bleak – except for the rich