Essays on Automation and Labor Markets