Essays on the Economics of Social Insurance and Labor Markets