Social connections and the sorting of workers to firms