Occupational Self-Selection in a Labor Market With Moral Hazard