Self-Selection and Optimal In-Kind Transfers