Involuntary Unemployment Reconsidered: Second-Best Contracting with Heterogeneous Firms and Workers.