Making the Right Assignment: Optimal Contracting for Post-Hire Selection