Polarization under incomplete markets and endogenous labor productivity