The economic consequences of automation